neighbor remote-as
This command creates a new neighbor who’s remote -as is as number. This command must be the first command used when configuring a neighbor.
Syntax
neighbor {<neighbor tag>|a.b.c.d|x:x::x:x} remote-as <AS number>
Command |
Description |
---|---|
a.b.c.d|x:x::x:x |
Defines the IP address of the neighbor (IPv4 or IPv6). |
neighbor tag |
Defines the neighbor tag. |
AS number |
Defines the AS number <1-65535>. |
peer |
Defines this field as an IPv4 address. |
Default
NA
Command Mode
Privileged User
Note
In all neighbor commands, the neighbor ip-address/word maybe described as peer.
Example
In This example, the router in AS-1, is trying to peer with AS-2 at 10.0.0.1.
(config-data)# router bgp 1 (conf-router)# neighbor 10.0.0.1 remote-as 2